<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'css' => [
            'assets/wx/css/address.css',
        ]
    ]);
?>

<body class="gu-address" ng-controller="wx-center-address-select-controller">

<footer class="aui-bar aui-bar-tab" id="footer">
    <div class="aui-padded-l-10 aui-padded-r-10 aui-bar-tab-item">
        <a href="/address/add" class="aui-btn aui-btn-primary aui-btn-block aui-btn-sm btn-bg">添加收货地址</a>
    </div>
</footer>

<div class="aui-content aui-margin-b-15">
    <ul class="aui-list aui-media-list">
        <li class="aui-list-header">
            地址列表
        </li>
        <li ng-repeat="addr in addrLists" class="aui-list-item aui-list-item-arrow" ng-click="selected(addr)">
            <div class="aui-media-list-item-inner">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-text">
                        <div class="aui-list-item-title aui-font-size-14">
                            <span ng-bind="addr.name"></span>
                            <div ng-if="addr.default" class="aui-label aui-label-danger">默认</div>
                        </div>
                        <div class="aui-list-item-right aui-font-size-12" ng-bind="addr.phone"></div>
                    </div>
                    <div class="aui-list-item-text aui-ellipsis-1 aui-font-size-12" ng-bind="addr.detail"></div>
                </div>
            </div>
        </li>
    </ul>
</div>



<?php
    $this->load->view('wx/public/footer.html', [
        'js' => [
            'assets/wx/js/center/address/select.js'
        ]
    ]);
?>

